package com.tubi.List;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class List1 {
    public static void main(String[] args) {
        List<String> s = new ArrayList<>();
        s.add("ww");
        s.add("wdw");
        s.add("dww");
        s.add("wwd");
        Iterator<String> iterator = s.iterator();
        while (iterator.hasNext()){
            System.out.println(iterator.next());
        }

        System.out.println("1111");
        for (String s1 : s) {
            System.out.println(s1);
        }
    }
}
